package com.logistics.distribution;

public class Product {
	private String product_id;
	private String product_name;
	private String category_lv1;
	private String category_lv2;
	private String unit;
	private String price;
	private String discount;
	private String prime_cost;
	private String type;
	private String supplier_name;
	private String producer;
	private String qg_period;
	private String tips;
	private String can_return;
	private String warning_number;
	private String max_number;
	private int nownumber=0;
	private int lessnumber=0;
	private String save_type;
	
	public String getSave_type() {
		return save_type;
	}
	public void setSave_type(String save_type) {
		this.save_type = save_type;
	}
	public int getNownumber() {
		return nownumber;
	}
	public void setNownumber(int nownumber) {
		this.nownumber = nownumber;
	}
	public int getLessnumber() {
		return lessnumber;
	}
	public void setLessnumber(int lessnumber) {
		this.lessnumber = lessnumber;
	}
	public String getProduct_id() {
		return product_id;
	}
	public void setProduct_id(String product_id) {
		this.product_id = product_id;
	}
	public String getProduct_name() {
		return product_name;
	}
	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}
	public String getCategory_lv1() {
		return category_lv1;
	}
	public void setCategory_lv1(String category_lv1) {
		this.category_lv1 = category_lv1;
	}
	public String getCategory_lv2() {
		return category_lv2;
	}
	public void setCategory_lv2(String category_lv2) {
		this.category_lv2 = category_lv2;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getDiscount() {
		return discount;
	}
	public void setDiscount(String discount) {
		this.discount = discount;
	}
	public String getPrime_cost() {
		return prime_cost;
	}
	public void setPrime_cost(String prime_cost) {
		this.prime_cost = prime_cost;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getSupplier_name() {
		return supplier_name;
	}
	public void setSupplier_name(String supplier_name) {
		this.supplier_name = supplier_name;
	}
	public String getProducer() {
		return producer;
	}
	public void setProducer(String producer) {
		this.producer = producer;
	}
	public String getQg_period() {
		return qg_period;
	}
	public void setQg_period(String qg_period) {
		this.qg_period = qg_period;
	}
	public String getTips() {
		return tips;
	}
	public void setTips(String tips) {
		this.tips = tips;
	}
	public String getCan_return() {
		return can_return;
	}
	public void setCan_return(String can_return) {
		this.can_return = can_return;
	}
	public String getWarning_number() {
		return warning_number;
	}
	public void setWarning_number(String warning_number) {
		this.warning_number = warning_number;
	}
	public String getMax_number() {
		return max_number;
	}
	public void setMax_number(String max_number) {
		this.max_number = max_number;
	}
	public String toString()
	{
		String st="id="+product_id+" name="+product_name+" category_lv1="+category_lv1+" category_lv2="+category_lv2+
				" unit="+unit+" price="+price+" discount="+discount+" prime_cost="+prime_cost+" type="+type+
				" supplier="+supplier_name+" producer="+producer+" qg_period="+qg_period+" tips="+tips+" can_return="+
				can_return+" warning_number="+warning_number+" max_number="+max_number+" nownumber="+nownumber+" lessnumber="+lessnumber;
		return st;
	}
	public Product(Product pd)
	{
		product_id=pd.getProduct_id();
		product_name=pd.getProduct_name();
		category_lv1=pd.getCategory_lv1();
		category_lv2=pd.getCategory_lv2();
		unit=pd.getUnit();
		price=pd.getPrice();
		discount=pd.getDiscount();
		prime_cost=pd.getPrime_cost();
		type=pd.getType();
		supplier_name=pd.getSupplier_name();
		producer=pd.getProducer();
		qg_period=pd.getQg_period();
		tips=pd.getTips();
		can_return=pd.getCan_return();
		warning_number=pd.getWarning_number();
		max_number=pd.getMax_number();
		nownumber=pd.getNownumber();
		lessnumber=pd.getLessnumber();	
	}
	public Product()
	{
		
	}
}
